import request from '@/utils/request'

export default {
  // 模板下载
  downTpl(url, data) {
    return request({
      url: url,
      method: 'post',
      data,
      responseType: 'blob'
    })
  },
  // 数据导入基础模板
  baseUploadData(url, data, config) {
    return request({
      url: url,
      method: 'post',
      data,
      timeout: 30000,
      ...config || {}
    })
  }
}
